//
// Created by 123 on 2024/12/26.
//
#include "stdio.h"

union Converter{
    float f;
    unsigned int i;
};

int main069(){
    union Converter co;
    co.f = 3.14f;
    printf("float: %.2f\n",co.f);
    printf("binary show :0x%X\n",co.i);

    //通过整数成员访问浮点数的二进制表示
    co.i = 0x4048f5c3;
    printf("int:%u\n",co.i);
    printf("float2:%.2f\n",co.f);

    return 0;
}